//
//  Global.swift
//  MagaCore
//
//  Created by qmdjx on 2023/5/30.
//

import Foundation
import SwiftUI

var var_screenRotator: UIInterfaceOrientationMask = .portrait
let var_marginLeft: CGFloat = 15
let var_darkColor = "393939"
let var_lightColor = "999999"
let var_purpleColor = "4F40BD"
let var_orangeColor = "FF6C3C"
let var_h5: CGFloat = 12
let var_h4: CGFloat = 14
let var_h3: CGFloat = 16
let var_h2: CGFloat = 18
let var_orangeBg = Color(red: 255/255, green: 108/255, blue: 60/255, opacity: 0.2)
let var_videoHeigit: CGFloat = UIDevice.ht_screenWidth() * 0.55
let var_screenWidth = UIDevice.ht_screenWidth()
let var_screenHeight = UIDevice.ht_screenHeight()
let var_safeTop = UIDevice.ht_safeDistanceTop()
let var_videoHeight = UIDevice.ht_screenWidth() * 0.55
let var_playerViewHeight = var_videoHeight + UIDevice.ht_safeDistanceTop()

typealias HTScrollCallBack = (String) -> Void
typealias HTChangeUrl = (String) -> Void

enum HTEnumSubtitleState {
	case htEnumOpen
	case htEnumClose
	case htEnumDisable
}

enum HTEnumSubtitleLanguage {
	case htEnumOff
	case htEnumEnglish
	case htEnumSpanish
}

enum HTEnumFast {
	case htEnumNone
	case htEnumForward
	case htEnumBack
}

